﻿using Inovout.Data.Domain;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KuaJing.Common.Domain
{
    partial class ExchangeRate : DataObject
    {
        /// <summary>
        /// 币种
        /// </summary>
        [DisplayName("币种"), UIHint("Enum")]
        public virtual Currency Currency { get; set; }
        /// <summary>
        /// 买入价,指银行向个人或企业买入外汇的价格
        /// </summary>
        [DataProperty("买入价", DataType.Currency, "{0:N4}", false, null, null)]
        public virtual decimal BidRate { get; set; }
        /// <summary>
        /// 卖出价
        /// </summary>
        [DataProperty("卖出价", DataType.Currency, "{0:N4}", false, null, null)]
        public virtual decimal? OfferRate { get; set; }
        /// <summary>
        /// 发布时间
        /// </summary>
        [DataProperty("发布日期", DataType.Date, "{0:yyyy-M-d}", false, null, null)]
        public virtual DateTime PublishTime { get; set; }
    }
}
